#!/usr/bin/python  
#-*-coding:utf-8-*-

'''

每天新增计算器

'''

import sys

reload(sys)
sys.setdefaultencoding('utf-8')

#留存天数(天)
D =30
#每天工作时间(分钟)
T = 1345
#运行时间(分钟)
t=6



#读取留存
retention_list =[]
with open('RetentionConfig.txt') as f:
    lines=f.readlines()
    for line in lines:
        sp=line.split('|')
        retention_list.append(float(sp[0]))

sum =sum(retention_list[:D])
x =T/(t*sum)



print x






































